I am attempting to force a document into edit mode, make changes and then submit it via the Web. The document submits, but none of my changes are saved. I have an edit button. If I first put the document in edit mode by using this button, everything works great. I don't want the user to have to hit two buttons. I tried to put the editdocument command and the beginning of the code, but it does not work. Please advise. Thanks in advance
Approver1:=Approver1;
@Command([EditDocument]);
@SetField("Signature1"; @Name([CN]; @UserName));
@SetField("Status1"; " Approved");
@SetField("DateApproved1"; @Text(@Now));
@SetField("CurrentOwner"; Approver4);
@SetField("HistoryNumber"; HistoryNumber + 1);
@SetField("Status" ; "Routing");
@SetField("History"; History + @NewLine + @Text(HistoryNumber) + ". " + @Name([CN]; @UserName) + " approved Change Review and routed " + Approver4 + " approval on " + @Text(@Now) + ".");
url := "
http://sit200.veaddhealth.org:3100/change.nsf/Change/By%20Current%20/" + @Text(@DocumentUniqueID) + "?OpenDocument";
@MailSend(Approver1;"";"";"Change Review from" + " " +@Name([CN]; @UpperCase(@UserName));url;"";"");
@Command([FileSave]);
@Command( [FileCloseWindow] )